<form action="<?php echo formAction('upload')?>" enctype="multipart/form-data" method="post">
File: <input type="file" name="file" />
Description: <input type="text" name="name" />
 <input type="submit" value="Upload" />
</form>
<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>">
    <table width="100%"  cellpadding="4" cellspacing="1" id="tblsort">
    	<tr class="headtb" nodrop="true" nodrag="true">
            <td width="5%"><?php echo inputCheckAll()?></td>
    		<td width="20%" ><?php echo _NAME?></td>
    		<td width="10%" ><?php echo Link?></td>
    		<td width="20%" ><?php echo _ACTIONS?></td>
    		<td>&nbsp;</td>
    	</tr>
    <?php
	foreach($files as $i => $file)
	{
	?>
	<tr>
        <td align="center"><?php echo inputCheck($file['iId'])?></td>
		<td nowrap="nowrap">
            <?php echo linkAction('edit',$file["cName"],'id='.$file["iId"])?>
            <input type="hidden" name="listid[]" value="<?php echo $file["iId"]?>" />
		</td>
		<td align=center>
            <input value="<?php echo $root_domain.'/'.$path_upload.$file['cFile'];?>" style="width: 400px;" />			
		</td>

		<td align=center>
            <?php echo linkAction('delete',_DELETE,'id='.$file["iId"])?>
		</td>
		<td></td>
	</tr>
	<?php
	}
    if(count($files)==0)
    {
    ?>
    <tr nodrop="true" nodrag="true">
    			<td align="center" colspan="5"><font color="Red"><?php echo _NOTFOUNDCONTENT?></font></td>
    </tr>
    <?php
    }
    ?>
    </table>
    <?php echo $show_page?>
</form>
<script type="text/javascript">
(new TableDnD).init("tblsort");
</script>
